<?php
/**
 * Created by PhpStorm.
 * User: spatra
 * Date: 15-1-8
 * Time: 下午2:20
 */


class Callname_List extends Eloquent
{
    public function creater()
    {
        return $this->hasOne('User', 'id', 'creater_id');
    }

    public function student()
    {
        return $this->hasMany('Callname_Student', 'callname_list_id', 'id');
    }

    protected $guarded = ['id'];

    protected $table = 'callname_lists';
}